package com.atstudying.mall.product.feign;

import com.atstudying.common.to.SkuReductionTo;
import com.atstudying.common.to.SpuBoundTo;
import com.atstudying.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author Mr.zhneg
 * @create 2020-10-19-14:49
 */
@FeignClient("mall-coupon")
@Component
public interface CouponSpuFeignService {

    @PostMapping("/coupon/spubounds/save")
    R saveSpuBounds(@RequestBody SpuBoundTo spuBoundTo);

    @PostMapping("/coupon/skufullreduction/saveinfo")
    R saveSkuReduction(@RequestBody SkuReductionTo skuReductionTo);
}
